package com.reins.bookstore.object;

import com.reins.bookstore.entity.Book;
import java.math.BigDecimal;
import lombok.Data;

@Data
public class BookDTO {

    private int bookId;

    private String isbn;
    private String name;
    private String type;
    private String author;
    private BigDecimal price;
    private String description;
    private Integer inventory;
    private String image;
    public BookDTO(Book book){
        this.bookId = book.getBookId();
        this.isbn = book.getIsbn();
        this.name = book.getName();
        this.type = book.getType();
        this.author = book.getAuthor();
        this.price = book.getPrice();
        this.description = book.getDescription();
        this.inventory = book.getInventory();
        this.image = book.getImage();
    }
}

